/**
 * @type {String}
 *
 * @properties={typeid:35,uuid:"BA8445A7-98E4-4B1B-B991-E2DCECB87DDA"}
 */
var fBoleta = null;

/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"CBFF8055-2FBF-4FA0-B595-2517BDC3F5B3",variableType:4}
 */
var fCuenta_cyb = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"05F9478C-F83A-4A14-8CFA-260CBA657C83",variableType:93}
 */
var fFechaHasta = null;

/**
 * @type {Date}
 *
 * @properties={typeid:35,uuid:"E1B62974-D4C1-43D7-A583-EB3F6410C4C6",variableType:93}
 */
var fFechaDesde = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"E22CC152-4539-494C-81D1-251AACBFFED3"}
 */
function ir_a_detalle(event) {
	globals.mostrarForm('depositos_cab_det')
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"A029CB8E-6064-4B1A-AE6F-187CE8DF4AEE"}
 * @AllowToRunInFind
 */
function buscar(event) {
	if (!controller.find())
	{
		globals.DIALOGS.showWarningDialog('Aviso','Fallo al buscar', 'OK')
		return false
	}
		
	fecha 		= '#' + utils.dateFormat(fFechaDesde,'dd-MM-yyyy') + '...' + utils.dateFormat(fFechaHasta,'dd-MM-yyyy') + '|dd-MM-yyyy'
	boleta_nro 	= '#%' + fBoleta + '%'
	cuentas_cyb_id = fCuenta_cyb
	
	if (controller.search() == 0)
		globals.DIALOGS.showWarningDialog('Aviso','No se encontraron depositos con esas condiciones', 'OK')
	return true
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"31F7B092-4BF9-4C77-95C6-B3A57113E370"}
 */
function fechasNull(event) {
	fFechaDesde = null
	fFechaHasta = null
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"EFC5A8AB-51C7-48F0-8B2E-3ABA2989332F"}
 */
function cuentaNull(event) {
	fCuenta_cyb = null
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"669C4F08-600E-4443-AD42-08DA4ED5B288"}
 */
function boletaNull(event) {
	fBoleta = null
}
